import { mapState, mapActions, mapMutations } from 'vuex';
export default {
  computed: {
    ...mapState('fraMonitoring', [
      'ftmPlaneModelList'
    ]),
    ...mapState('templateManagement', [
      'firstClassClassificationList',
      'secondaryClassificationListModel',
      'secondaryClassificationList'
    ])
  },
  methods: {

    ...mapActions('templateManagement', [
      'getSmiList',
      'getImiList'
    ]),
    ...mapMutations('templateManagement', [
      'setState'
    ]),
    // 获取二级
    getImiListHanlder(smi, model = false) {
      if (smi) {
        this.getImiList({ smi, model });
      } else {
        if (model) {
          this.setState({ key: 'secondaryClassificationListModel', payload: {}});
        } else {
          this.setState({ key: 'secondaryClassificationList', payload: {}});
        }
      }
    }
  }
};
